﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace Organizer.controls
{
    public partial class Menu : System.Web.UI.UserControl
    {
        private int UserId { get { return Int32.Parse(Page.RouteData.Values["UserId"].ToString()); } }

        protected void Page_Load(object sender, EventArgs e)
        {

        }

        protected void lnkMovies_Click(object sender, EventArgs e)
        {
            Response.RedirectToRoute("Movies", new { UserId = UserId });
        }

        protected void lnkTvShows_Click(object sender, EventArgs e)
        {
            Response.RedirectToRoute("TvShows", new { UserId = UserId });
        }

        protected void lnkBooks_Click(object sender, EventArgs e)
        {
            Response.RedirectToRoute("Books", new { UserId = UserId });
        }

        protected void lnkFun_Click(object sender, EventArgs e)
        {
            Response.RedirectToRoute("Main", new { UserId = UserId });
        }

        protected void lnkAccount_Click(object sender, EventArgs e)
        {
            Response.RedirectToRoute("Account", new { UserId = UserId });
        }

        protected void lnkCalendar_Click(object sender, EventArgs e)
        {
            Response.RedirectToRoute("Calendar", new { UserId = UserId });
        }

    }
}